﻿<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>门户首页</title>
	<link rel="stylesheet" href="resources/js/jquery-easyui-1.4.4/themes/default/easyui.css" />
    <link rel="stylesheet" href="resources/js/jquery-easyui-1.4.4/themes/icon.css" />
    <link rel="stylesheet" href="resources/css/public.css" />
    <script src="resources/js/jquery-easyui-1.4.4/jquery.min.js"></script>
    <script src="resources/js/jquery-easyui-1.4.4/jquery.easyui.all.js"></script>
    <script src="resources/js/jquery-easyui-1.4.4/easyui-lang-zh_CN.js"></script>
    <script src="resources/js/common.js"></script>
    <script src="resources/js/Utils.js"></script>
</head>
    <body style="background:#1558a6">
        <div class="index_login">
            <ol>
                <!-- 外网显示 -->
                <li style="font-size:20px;margin-left:20px;">正新订单管理系统</li>
                <li style="font-family:Arial;font-size:14px;margin-left:20px;">Order management system</li>
            </ol>
            <form id="login" method="post" action="${ctx}/dzsq/login">
                <ul>
                    <li>
                        <input name="userName" type="text" id="userName" title="请输入帐号" style="line-height:40px;color:black;" />
                    </li>
                    <li>
                        <input name="password" type="password" id="password" title="请输入密码" style="line-height:40px;color:black;" />
                    </li>
                    <li>
                        <!-- <button type="button" onclick="LoginIndex.loginCheck();" style="width:350px;height:40px;background-color:#0972dd;border:1px solid #0c57a3;color:#FFF;font-size:16px;font-family:'微软雅黑';">登&nbsp;&nbsp;录</button> -->
                        <a href="common/default.html" style="width:350px;height:40px;background-color:#0972dd;border:1px solid #0c57a3;color:#FFF;font-size:16px;font-family:'微软雅黑';">登&nbsp;&nbsp;录</a>
                    </li>
                    <li style="height: 100px;line-height: 20px;">
                        <center id="tips" class="login-alert displayNone" style="color:#FFF;font-size:16px;font-family:'微软雅黑'"></center>
                        <!-- <center id="tips" class="login-alert displayNone" style="color:#FFF;font-size:16px;font-family:'微软雅黑'">${error}</center> -->
                        <input id="tipsValue" type="hidden" value="${error}" />
                    </li>
                </ul>
            </form>
            <center>
                <p>建议使用IE8.0以上的浏览器    分辨率不低于1024*768  CopyRight&2015-2025  正新集团</p>
            </center>
        </div>
        <script type="text/javascript">
            (function($,window){
                window.LoginIndex = {};
                // 页面初始化方法
                LoginIndex.init = function(){
                    // 判断是否存在错误提示，若存在，则显示提示框
                    if($('#tipsValue').val() != ''){
                        LoginIndex.showtips();
                    };

                    //取得浏览器的版本信息等,转换为小写
                    var ua = navigator.userAgent.toLowerCase();
                    if(ua.indexOf("msie") > -1){//判定为IE浏览器时
                        var safariVersion = ua.match(/msie ([\d.]+)/)[1];//取得版本号
                        if(safariVersion < 8){//如果浏览器低于IE8.0
                            var ieView = !-[1,]&&document.documentMode;
                            if (ieView<8){
                                $.messager.alert("提示","浏览器版本过低，如有系统使用需求请联系资讯部协助升级浏览器！","info");
                            };
                        }
                    };
                    if(ua.indexOf("msie") > -1){
                        try{
                            var swf1 = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
                        }catch(e){
                            $.messager.alert("提示信息","Flash插件未安装，可能会影响系统使用！","info");
                        }
                    }else{
                        try{
                            var swf2 = navigator.plugins['Shockwave Flash'];
                            if(swf2 == undefined){
                                $.messager.alert("提示信息","Flash插件未安装，可能会影响系统使用！","info");
                            };
                        }catch(e){
                            $.messager.alert("提示信息","Flash插件未安装，可能会影响系统使用！","info");
                        }
                    };
                    // 登录绑定enter键
                    CommonScript.keyEnter.on(0,LoginIndex.loginCheck);
                };

                // 登录校验及提交
                LoginIndex.loginCheck = function(){
                    var usernameValue = $.trim($('#userName').val());
                    var passwordValue = $.trim($('#password').val());
                    var tips=$("#tips");

                    if(usernameValue==""){
                        tips.html("请输入登录帐号");
                        LoginIndex.showtips();
                        return false;
                    }else if(passwordValue==""){
                        tips.html("请输入登录密码");
                        LoginIndex.showtips();
                        return false;
                    };
                    $('#login').submit();
                };

                // 显示提示信息
                LoginIndex.showtips = function(){
                    $('.login-alert').fadeIn(1000,function(){
                        setTimeout(function(){
                          $('.login-alert').fadeOut(1000);
                        },5000);
                    });
                };

            })(jQuery,window);

            // 页面初始化
            LoginIndex.init();
        </script>
    </body>

</html>
